﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace YX
{
    abstract class FatherPlane:BaseClass
    {
        private Image image;
        public FatherPlane(int x, int y, Image imag, int speed, int life, Direction dir)
            : base(x, y, imag.Width, imag.Height, speed, life, dir)
        {
            this.image = imag;
        }

        public abstract void It_Over();

        public override void Draw(Graphics g)
        {
            g.DrawImage(image, this.X, this.Y, image.Width / 2, image.Height / 2);
        }

    }
}
